package com.flower.config;

/*import org.springframework.batch.core.Job;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.StepContribution;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.batch.core.configuration.annotation.JobBuilderFactory;
import org.springframework.batch.core.configuration.annotation.StepBuilderFactory;
import org.springframework.batch.core.scope.context.ChunkContext;
import org.springframework.batch.core.step.tasklet.Tasklet;
import org.springframework.batch.repeat.RepeatStatus;*/
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName JobConfigure
 * @Description TODO
 * @Author 张晓焕
 * @Date 2022/6/14 15:19
 * @Version 1.0
 */
@Configuration
//@EnableBatchProcessing
public class JobConfigure {
 //   @Autowired
   // private JobBuilderFactory jobBuilderFactory;

  //  @Autowired
  //  private StepBuilderFactory stepBuilderFactory;

    // 创建任务
 /*   @Bean
    public Job importData(){
        return jobBuilderFactory.get("importData")
                .start(sept1())
                .build();
    }*/

    //任务执行步骤
    /*@Bean
    public Step sept1() {
        return stepBuilderFactory.get("sept1")
                .tasklet(new Tasklet() {
                    @Override
                    public RepeatStatus execute(StepContribution stepContribution, ChunkContext chunkContext) throws Exception {
                        return RepeatStatus.FINISHED;
                    }
                })
                .build();


    }*/
}
